import request from '@/utils/request'

// 查询保养到期提醒列表
export function listWarning(query) {
  return request({
    url: '/shebei/warning/list',
    method: 'get',
    params: query
  })
}

// 查询保养到期提醒详细
export function getWarning(warningId) {
  return request({
    url: '/shebei/warning/' + warningId,
    method: 'get'
  })
}

// 新增保养到期提醒
export function addWarning(data) {
  return request({
    url: '/shebei/warning',
    method: 'post',
    data: data
  })
}

// 修改保养到期提醒
export function updateWarning(data) {
  return request({
    url: '/shebei/warning',
    method: 'put',
    data: data
  })
}

// 删除保养到期提醒
export function delWarning(warningId) {
  return request({
    url: '/shebei/warning/' + warningId,
    method: 'delete'
  })
}
